Payload format for unified delivery of high bandwidth and low bandwidth sensor data
This is the latest payload format we are using.
- Data is sent as fixed size packets inside the wifi mesh.
- Data is sent as dynamic sized packets through IP Socket / USB (CCD-ACM) connection.
- Socket / USB server does a sliding window check to detect the header (by comparing the unique
MESH_ID) and align.
Other suggested payload formats
1. Zero padded data packets
We keep the packet sizes fixed and zero pad (or just dis-regard the unused bytes) during parsing step. This is inefficient interms of traffic as we transport unwanted data. But straightforward to implement over the current implementation.

2. Different sized packets
We adjust the packet sizes depending on the type of measurement being sent. Data parser in RX side (in root node and in socket server) has to,
1. Read the header of the incoming data and detect measurement type
2. Adjust the number of expected bytes in the packet according to the measurement type
3. Continue to parse and process.
